#indent#[Inline:
  -Database='MyDatabase',
  -SQL="SELECT last_insert_id() AS 'ID'"]
  
	[inline:
		-Database='MyDatabase',
		-Table='MyLayout',
		-Op='eq','ID'=(Field:'ID'),
		-MaxRecords=1,
		-Search]

		#selstart##select##selend#

	[/inline]
	
[/inline]
<!-- When a record is added to a SQL database, the cursor to the newly added record is lost 
and records from the record just added cannot be shown. To do so, you must retrieve the last 
insert id (the value of the key field) and then search for that value. -->	
